package io.lckgroup.modules.lck.controller.wxmp;


import io.lckgroup.common.utils.R;
import io.lckgroup.modules.lck.annotation.WxLogin;
import io.lckgroup.modules.lck.service.ShopFoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author huangrui
 * 微信端 商品（商品的CRUD）
 */
@RestController
@RequestMapping("/mp/goods")
public class WeiXinShopFoodController {
    @Autowired
    private ShopFoodService shopFoodService;

    /**
     * 功能描述: <br>
     * 〈〉获取商品列表，包括商品类型，商品规格
     *
     * @Param: []
     * @Return: io.lckgroup.common.utils.R
     * @Author: 13980
     * @Date: 2020/2/21 15:33
     */
    @GetMapping("/weixinGoodsList")
    public R weixinFoodList(Long ShopMerchantInId) {
        List foodList = shopFoodService.findFoodList(ShopMerchantInId);
        return R.ok().put("data", foodList);
    }

}
